package com.gingko.duominuo.utils

import android.text.TextUtils
import java.util.regex.Pattern

fun String?.isMobile(): Boolean {
    return if (this.isNullOrEmpty()) {
        false
    }else{
        val regex = "^1[\\d]{10}$"
        Pattern.matches(regex, this)
    }
}